<?php

namespace Home\Controller;

use Think\Controller;

class BaseController extends Controller
{
    /**
     * 获取登录页面的背景图片
     * @return mixed
     */
    protected function wallImage()
    {
        $files = glob("static/images/wall_page/*.jpg");
        $key = array_rand($files, 1);
        return $files[$key];
    }
}